<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>百度离线版DEMO</title>
<script type="text/javascript" src="js/apiv1.3.min.js"></script>
<!--script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script-->
<link rel="stylesheet" type="text/css" href="bmap.css"/>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
</head>
<body>
<style>
html,body{
  margin:0;
  padding:0
}

</style>
<div style="width:100%;height:100%;position:absolute;" id="container"></div>

</body>
</html>
<script type="text/javascript">
	var mapOptions = {
		//minZoom: 12, //地图最小层级
		mapType: BMAP_NORMAL_MAP
	}
	var map = new BMap.Map("container", mapOptions);      //设置卫星图为底图BMAP_PERSPECTIVE_MAP
	var initPoint = new BMap.Point(115.882551, 28.713486);    // 创建点坐标
	
	map.centerAndZoom(initPoint,15);                    // 初始化地图,设置中心点坐标和地图级别。
	map.enableScrollWheelZoom();                  // 启用滚轮放大缩小。
	map.enableKeyboard();                         // 启用键盘操作。  
	map.enableContinuousZoom();										//启用连续缩放效果
	// ----- control -----
	//map.addControl(new BMap.NavigationControl()); //地图平移缩放控件
	map.addControl(new BMap.ScaleControl()); //显示比例尺在右下角


	// ----- maker -----
	addCabinMarker(initPoint);
	
	function addCabinMarker(point) { 
		var cabinIcon = new BMap.Icon("./images/cabin.png", new BMap.Size(32, 37));    
		var cabinMarkerOptions = {
			icon: cabinIcon,
			enableDragging: true,
			draggingCursor: "move",
			title: "训练仓"
		}
 		var cabinMarker = new BMap.Marker(point, cabinMarkerOptions);  
 		cabinMarker.setAnimation(BMAP_ANIMATION_DROP);
 		
 		map.addOverlay(cabinMarker);
		
	}
	
	

 	
</script>
